<?php 

/**
 * Displays each archive parceiro item on archive pages, generated by a loop
 *
 * @package WordPress
 * @subpackage Parea
 * @since 1.0
 * @version 1.0
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<h1><a title="<?php the_title_attribute() ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>


		<div class="post-meta">
			<p>

        <span class="dashicons dashicons-location-alt"></span>
        <span class="meta-info span-author">
           <?php echo types_render_field( 'cidade' ); ?>
        </span>
        
        <span class="dashicons dashicons-category"></span>
        <span class="meta-info span-category">
          <?php echo get_the_term_list($post->ID, 'profissao')?>	
        </span> 

			</p>

    </div>	
    
  <?php if( has_post_thumbnail() ): ?>
  
    <div class="parea-thumbnail">
      <a class="post-thumbnail" title="<?php the_title_attribute() ?>" href="<?php the_permalink(); ?>">
      <?php the_post_thumbnail('medium', array('class' => 'img-responsive')); ?>			
      </a>		
    </div>

  <?php endif; ?>    


	<?php the_excerpt(); ?>

	<?php edit_post_link( __( 'Edit this page' , 'parea' ), '<p>', '</p>' ); ?>	
		
</article>